import { createApp } from 'vue'
import App from './App.vue'
import { router } from './router'
import { createPinia } from 'pinia'
import SvgIcon from './plugins/SvgIcon.vue'
import 'virtual:svg-icons-register' //非常重要，注册svg图标
import { mainProcess } from './thoroughfare'
import { ganttastic } from '@infectoone/vue-ganttastic'

const app = createApp(App)
app.use(router) // 激活路由
app.use(createPinia()) // 激活pinia
app.use(ganttastic) // 激活ganttastic
app.component('svg-icon', SvgIcon)
app.mount('#app')

//监听主进程消息
mainProcess()
